package com.example.spring_aop.proxy;

import com.example.spring_aop.aspect.TimeRecord;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description: 房东
 * User: Li_yizYa
 * Date: 2025/7/24
 * Time: 17:19
 */
@Component // 交给 spring 进行管理
public class RealHouseSubject implements HouseSubject{

    @TimeRecord
    @Override
    public void rent() {
        System.out.println("我是房东，我出租房子");
    }

    @Override
    public void sale() {
        System.out.println("我是房东，我出售房子");
    }
}
